<include file="Public:header" />
<form action="{:U('Home/EquRepairRecordsComment/save')}" method="post" class="definewidth m20" name="comment-form">
<table class="table table-bordered table-hover definewidth m10">
    <input type="hidden" name="user_id" value="{$equ_repair_records['user_id']}" /> 
    <input type="hidden" name="equ_repair_records_id" value="{$equ_repair_records['equ_repair_records_id']}" />
    <ul style="list-style-type: none;" class="message">
        <foreach name="question_list" item="que_val" key="que_key" >
            <li class="well">
                <p class="message">
                    {$que_key+1}.{$que_val.question}
                </p>
                <span class="meta">
                     <foreach name="level.list" item="level_val" key="level_key">
                        {$level_val}&nbsp;&nbsp;&nbsp;&nbsp;<input type="radio" name="question_{$que_val.comment_question_id}" value="<?php echo $que_val['level_'.$level_key]; ?>" />&nbsp;&nbsp;&nbsp;&nbsp;
                    </foreach>
                </span>
            </li>
        </foreach>
    </ul>
    <tr>
        <td style="align-content: center;">
            <button class="btn btn-primary" type="submit">提交</button> &nbsp;&nbsp;<button type="button" class="btn btn-success" name="backid" id="backid">返回列表</button>
        </td>
    </tr>
</table>
</form>

<script>
    $(function () {
        $('#backid').click(function(){
            window.location.href="{:U('Home/EquRepairRecordsComment/index')}";
        });
        
    });
</script>

<include file="Public:footer" />